package chapter06

class Test09_AbstractClass {
  def main(args: Array[String]): Unit = {

  }
}
// 定义抽象类
abstract class Person9{
  // 非抽象属性
  val name:String = "person"

  // 抽象属性
  var age:Int

  // 非抽象方法
  def eat():Unit = {
    println("eat")
  }

  def sleep():Unit

}

class Student9 extends Person9{
  override var age: Int = _

  override def sleep(): Unit = {



  }
}
